words = input()
list = []
for i in range(len(words)):
    times = words.count(words[i])
    list.append(times)
    X = max(list) - min(list)
    for j in range(2, X):
        if X % j == 0:
            print('No Answer')
            print(0)
    else:
        print('Lucky Word')
        print(X)
# 先对输入的字符串进行处理，对字符串中的每个字符一次次数，然后用最大值减去最小值达到题目要求，然后进行检验